package Chapter07.Homework.H20212025;

public class Keji extends Aircraft {
    private int zuowei;

    @Override
    public void fly() {
        super.fly();
        System.out.println("正常");
    }

    @Override
    public void jiasu() {
        super.jiasu();
        System.out.println("正常");
    }

    @Override
    public void jiangluo() {
        super.jiangluo();
        System.out.println("正常");
    }
    public void show(){
        System.out.println("客机的重量"+getWeight()+",高度"+getHeight()+",载客人数"+zuowei);
    }

    public Keji(double weight, double height,int zuowei) {
        super(weight, height);
        this.zuowei = zuowei;
    }

    public int getZuowei() {
        return zuowei;
    }

    public void setZuowei(int zuowei) {
        this.zuowei = zuowei;
    }

}
